import request from '@/utils/request'

// 查询活动参与申请列表
export function listActivityApplications(query) {
  return request({
    url: '/activity/activityApplications/list',
    method: 'get',
    params: query
  })
}

// 查询活动参与申请详细
export function getActivityApplications(applicationId) {
  return request({
    url: '/activity/activityApplications/' + applicationId,
    method: 'get'
  })
}

// 新增活动参与申请
export function addActivityApplications(data) {
  return request({
    url: '/activity/activityApplications',
    method: 'post',
    data: data
  })
}

// 修改活动参与申请
export function updateActivityApplications(data) {
  return request({
    url: '/activity/activityApplications',
    method: 'put',
    data: data
  })
}

// 删除活动参与申请
export function delActivityApplications(applicationId) {
  return request({
    url: '/activity/activityApplications/' + applicationId,
    method: 'delete'
  })
}
